import request from '../../util/axios'

// 分页查询顶部菜单
export const getMenuList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysTopMenu/paging',
  method: 'post',
  data
})

// 新增用户信息
export const addMenu = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysTopMenu',
  method: 'post',
  data
})

// 修改顶部菜单
export const editMenuList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysTopMenu',
  method: 'put',
  data
})

// 删除顶部菜单
export const delMenu = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysTopMenu',
  method: 'delete',
  data
})

// 提交配置顶部菜单
export const setMenu = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysTopMenu/grant',
  method: 'post',
  data
})
